const logger = require('../middleware/logger');
const auth = require('../middleware/auth');

/**
 * @param {import('../index').Application} app 
 */
module.exports = (app) => {
  const { router, controller } = app;

  const userRouter = router.namespace('/user', logger, auth);

  userRouter.get('/get', controller.user.get);
  userRouter.put('/add', controller.user.add);
  userRouter.delete('/del', controller.user.del);
};